package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import lombok.Data;

/**
 * 订单
 */
@Data
@TableName("mz_order")
public class Order extends BaseEntity {

    private Integer id;

    private Long orderId;

    //会员Id
    private Long memberId;

    //手机号
    private String mobile;

    //优惠券ID
    private Integer couponId;

    //总价 分
    private Integer totalMoney;

    //优惠金额 分
    private Integer couponMoney;

    //应实付金额 分
    private Integer money;

    //实际支付金额 分
    private Integer payMoney;

    //已退款金额 分
    private Integer refund;

    //卡次名称
    private String title;

    //商品Id
    private Integer goodsId;

    //总次数
    private Integer count;

    //剩余次数
    private Integer remain;

    //消费商家ID
    private Integer merchantId;

    //每次金额 分
    private Integer perMoney;

    //首次分账金额 分
    private Integer headMoney;

    //最后分账金额 分
    private Integer lastMoney;

    //订单状态 0未支付 1已取消 2已支付 3已发货 4已退款
    private Integer status;

    //支付流水号
    private String outTradeNo;

    //备注
    private String remark;

    private Integer version;

    @TableField(exist = false)
    private SummaryTimes summaryTimes;

}
